package com.ruoyi.outbound.dataBackhaul.service.impl;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.outbound.dataBackhaul.domain.DataBackhaul;
import com.ruoyi.outbound.dataBackhaul.mapper.DataBackhaulOutMapper;
import com.ruoyi.outbound.dataBackhaul.service.IDataBackhaulOutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DataBackhaulOutServiceImpl implements IDataBackhaulOutService {
    @Autowired
    private DataBackhaulOutMapper dataBackhaulOutMapper;
    @Override
    public List<DataBackhaul> selectdataBackhaulList(DataBackhaul dataBackhaul) {
        return dataBackhaulOutMapper.selectBicycleList(dataBackhaul);
    }

    @Override
    public AjaxResult sycn(String[] consignmentIds) {
        return null;
    }

    @Override
    public AjaxResult selectDataBackhaulNumberByConsignmentIds(String[] consignmentIds) {
        List<DataBackhaul> list=dataBackhaulOutMapper.selectDataBackhaulNumberByConsignmentIds(consignmentIds);
        return AjaxResult.success(list);
    }
}
